package com.gientech.madp.sm2.service;

import cn.hutool.json.JSONObject;
import com.gientech.madp.sm2.utils.R;

import java.util.Map;

/**
 * @Author smile_ZhongXuan
 * @Date 2021/11/1 14:31
 * @Version 1.0
 */
public interface SM4Service {

    /**
     * SM4加密
     * @param security
     * @param jsonObject
     * @return
     */
    R encrypt(String security, JSONObject jsonObject);

    /**
     * SM4解密
     * @param security
     * @param map
     * @return
     */
    R decrypt(String security, Map map);

}
